package com.duobaoyu.dby.supply.common.biz.dto.message;

import com.duobaoyu.dby.common.mybatis.support.Query;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author tianxiaoqiang
 * @Date 2022/8/10 20:50
 * @Version 1.0
 * @Description mq消息入参
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "MqMessageDTO对象", description = "mq消息表")
public class MqMessageDTO extends Query implements Serializable {
	private static final long serialVersionUID = 8321437488868918827L;

	private Long id;
	/**
	 * 主题
	 */
	@ApiModelProperty(value = "topic")
	private String topic;
	/**
	 * 标签
	 */
	@ApiModelProperty(value = "tag")
	private String tag;
	/**
	 * 消息体
	 */
	@ApiModelProperty(value = "消息体")
	private String message;
	/**
	 * 超时时间 ms
	 */
	@ApiModelProperty(value = "超时时间")
	private Long timeout;
	/**
	 * hashKey
	 */
	@ApiModelProperty(value = "hashKey")
	private String hashKey;

	/**
	 * mq 发送状态
	 */
	@ApiModelProperty(value = "发送状态",example = "mq发送状态")
	private String status;

	/**
	 * msgId
	 */
	@ApiModelProperty(value = "msgId")
	private String msgId;

	/**
	 * 来源
	 */
	@ApiModelProperty(value = "来源",example = "job/admin/api")
	private String origin;
}
